package com.campus.merchant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-04-18
 */
@Getter
@Setter
@TableName("address")
@ApiModel(value = "Address对象", description = "收货地址表")
public class Address extends IntegerIdBaseEntity<Address> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("收货人姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("收货人电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("详细地址")
    @TableField("detail")
    private String detail;

    @ApiModelProperty("是否默认：1-是，0-否")
    @TableField("is_default")
    private Boolean isDefault;

    @ApiModelProperty("地址标签（学校、宿舍、家、公司等）")
    @TableField("tag")
    private String tag;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
